import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [

  {
    path: "/",
    name: "login",
    redirect: "/login"
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index"),
    meta: { title: "登录 Login page", keepAlive: false }

  },
  {
    path: "/home",
    name: "Home",
    component: () => import("@/views/Home/index"),
    meta: { title: "首页 Home page", keepAlive: false }

  },
  {
    path: "/list",
    name: "list",
    component: () => import("@/views/list/index"),
    meta: { title: "许愿池 Wishing pool", keepAlive: false }
  },
  {
    path: "/listTwo",
    name: "listTwo",
    component: () => import("@/views/list/indexTwo"),
    meta: { title: "晒晒我的宝藏工位Show my station", keepAlive: false }


  },
  {
    path: "/videoList",
    name: "videoList",
    component: () => import("@/views/list/videoList"),
    meta: { title: "", keepAlive: false }

  },
  {
    path: "/activityFlow",
    name: "activityFlow",
    component: () => import("@/views/activityFlow/index"),
    meta: { title: "活动规则 Regulation"}

  },
  {
    path: "/activityFlowPushList",
    name: "activityFlowPushList",
    component: () => import("@/views/activityFlow/pushList"),
    meta: { title: "许愿池 Wishing pool", keepAlive: false }
  },
  {
    path: "/LuckyDraw",
    name: "LuckyDraw",
    component: () => import("@/views/LuckyDraw/index")
  }, {
    path: "/luckyDrawSelect",
    name: "luckyDrawSelect",
    component: () => import("@/views/LuckyDraw/luckyDrawSelect0104"),
    meta: { title: "", keepAlive: false }

  },
  {
    path: "/",
    name: "home",
    component: () => import("@/views/LuckyDraw/index")
  }

];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
